/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.membros.database.entities;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import br.com.membros.database.utils.BaseEntity;

@Entity
@Table(name = "tb_controle")
public class ControleEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;
    
	@Id()
	@GeneratedValue
    @Column(name = "ID_CONTROLE")
	private Long idControle;
	
    @Column(name = "ID_MEMBRO")
    private Integer idMembro;

    @Column(name = "ID_USUARIO")
    private Integer idUsuario;
    
    @Column(name = "VL_CONTROLE")
    private BigDecimal vlControle;
    
    @Column(name = "DT_CONTROLE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dtControle;

    @Column(name = "FL_ENTRADA")
    private boolean flEntrada;

    public ControleEntity() {
    }

    public ControleEntity(Long idControle) {
        this.idControle = idControle;
    }

    public ControleEntity(Long idControle, BigDecimal vlControle, Date dtControle, boolean flEntrada) {
        this.idControle = idControle;
        this.vlControle = vlControle;
        this.dtControle = dtControle;
        this.flEntrada = flEntrada;
    }

    public Long getIdControle() {
        return idControle;
    }

    public void setIdControle(Long idControle) {
        this.idControle = idControle;
    }

    public Integer getIdMembro() {
        return idMembro;
    }

    public void setIdMembro(Integer idMembro) {
        this.idMembro = idMembro;
    }

    public Integer getIdUsuario() {
        return idUsuario;
    }

    public void setIdUsuario(Integer idUsuario) {
        this.idUsuario = idUsuario;
    }

    public BigDecimal getVlControle() {
        return vlControle;
    }

    public void setVlControle(BigDecimal vlControle) {
        this.vlControle = vlControle;
    }

    public Date getDtControle() {
        return dtControle;
    }

    public void setDtControle(Date dtControle) {
        this.dtControle = dtControle;
    }

    public boolean getFlEntrada() {
        return flEntrada;
    }

    public void setFlEntrada(boolean flEntrada) {
        this.flEntrada = flEntrada;
    }
    
}
